<!DOCTYPE html>
<html lang="zh-CN">
<head>
  <meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=2">
<meta name="theme-color" content="#222">
<meta name="generator" content="Hexo 5.2.0">
  <link rel="apple-touch-icon" sizes="180x180" href="/images/apple-touch-icon-next.png">
  <link rel="icon" type="image/png" sizes="32x32" href="/images/favicon-32x32-next.png">
  <link rel="icon" type="image/png" sizes="16x16" href="/images/favicon-16x16-next.png">
  <link rel="mask-icon" href="/images/logo.svg" color="#222">

<link rel="stylesheet" href="/css/main.css">


<link rel="stylesheet" href="/lib/font-awesome/css/font-awesome.min.css">
  <link rel="stylesheet" href="//cdn.jsdelivr.net/npm/pace-js@1/themes/blue/pace-theme-minimal.css">
  <script src="//cdn.jsdelivr.net/npm/pace-js@1/pace.min.js"></script>

<script id="hexo-configurations">
    var NexT = window.NexT || {};
    var CONFIG = {"hostname":"yimig.github.io","root":"/","scheme":"Muse","version":"7.8.0","exturl":false,"sidebar":{"position":"left","display":"post","padding":18,"offset":12,"onmobile":false},"copycode":{"enable":false,"show_result":false,"style":null},"back2top":{"enable":true,"sidebar":false,"scrollpercent":true},"bookmark":{"enable":false,"color":"#222","save":"auto"},"fancybox":false,"mediumzoom":false,"lazyload":false,"pangu":false,"comments":{"style":"tabs","active":null,"storage":true,"lazyload":false,"nav":null},"algolia":{"hits":{"per_page":10},"labels":{"input_placeholder":"Search for Posts","hits_empty":"We didn't find any results for the search: ${query}","hits_stats":"${hits} results found in ${time} ms"}},"localsearch":{"enable":true,"trigger":"auto","top_n_per_article":1,"unescape":false,"preload":false},"motion":{"enable":true,"async":false,"transition":{"post_block":"fadeIn","post_header":"slideDownIn","post_body":"slideDownIn","coll_header":"slideLeftIn","sidebar":"slideUpIn"}},"path":"search.xml"};
  </script>

  <meta name="description" content="IntelliJ IDEA是JetBrains公司出品的Java IDE，其优秀的扩展性和联想功能可以大幅度提升开发者的效率，是开发JAVA应用的理想选择。下面将会介绍IntelliJ IDEA的常用功能，希望能与大家共同分享。 Form&gt;慕课网笔记">
<meta property="og:type" content="article">
<meta property="og:title" content="【Part.1】IntelliJ IDEA小教程：代码定位篇">
<meta property="og:url" content="http://yimig.github.io/2018/09/28/tutorial_idea1/index.html">
<meta property="og:site_name" content="Tim&#39;s Blog">
<meta property="og:description" content="IntelliJ IDEA是JetBrains公司出品的Java IDE，其优秀的扩展性和联想功能可以大幅度提升开发者的效率，是开发JAVA应用的理想选择。下面将会介绍IntelliJ IDEA的常用功能，希望能与大家共同分享。 Form&gt;慕课网笔记">
<meta property="og:locale" content="zh_CN">
<meta property="og:image" content="http://47.94.231.166/wp-content/uploads/2018/04/34.png">
<meta property="og:image" content="http://47.94.231.166/wp-content/uploads/2018/04/36.png">
<meta property="og:image" content="http://47.94.231.166/wp-content/uploads/2018/09/idea64_2018-09-28_20-07-06-300x159.png">
<meta property="og:image" content="http://47.94.231.166/wp-content/uploads/2018/09/2018-09-28_20-53-38-300x44.png">
<meta property="og:image" content="http://47.94.231.166/wp-content/uploads/2018/09/idea64_2018-09-28_20-36-35-77x150.png">
<meta property="og:image" content="http://47.94.231.166/wp-content/uploads/2018/09/2018-09-28_20-48-57.png">
<meta property="og:image" content="http://47.94.231.166/wp-content/uploads/2018/09/idea64_2018-09-28_20-46-29-300x159.png">
<meta property="og:image" content="http://47.94.231.166/wp-content/uploads/2018/09/idea64_2018-09-28_21-03-50-300x111.png">
<meta property="og:image" content="http://47.94.231.166/wp-content/uploads/2018/09/idea64_2018-09-28_21-31-05-300x234.png">
<meta property="og:image" content="http://47.94.231.166/wp-content/uploads/2018/09/idea64_2018-09-28_21-30-07-300x287.png">
<meta property="og:image" content="http://47.94.231.166/wp-content/uploads/2018/09/2018-09-28_21-40-49.png">
<meta property="og:image" content="http://47.94.231.166/wp-content/uploads/2018/09/idea64_2018-09-28_22-06-40-300x116.png">
<meta property="og:image" content="http://47.94.231.166/wp-content/uploads/2018/09/idea64_2018-09-28_22-07-12-300x108.png">
<meta property="og:image" content="http://47.94.231.166/wp-content/uploads/2018/09/idea64_2018-09-28_22-07-29-300x114.png">
<meta property="og:image" content="http://47.94.231.166/wp-content/uploads/2018/09/2018-09-28_22-42-07.png">
<meta property="og:image" content="http://47.94.231.166/wp-content/uploads/2018/09/idea64_2018-09-28_22-58-25-300x129.png">
<meta property="og:image" content="http://47.94.231.166/wp-content/uploads/2018/09/idea64_2018-09-28_23-05-39-300x54.png">
<meta property="og:image" content="http://47.94.231.166/wp-content/uploads/2018/09/2018-09-28_23-11-10-267x300.png">
<meta property="article:published_time" content="2018-09-28T14:49:30.000Z">
<meta property="article:modified_time" content="2020-10-28T14:56:53.608Z">
<meta property="article:author" content="Tim">
<meta property="article:tag" content="IntelliJ IDEA">
<meta property="article:tag" content="教程">
<meta name="twitter:card" content="summary">
<meta name="twitter:image" content="http://47.94.231.166/wp-content/uploads/2018/04/34.png">

<link rel="canonical" href="http://yimig.github.io/2018/09/28/tutorial_idea1/">


<script id="page-configurations">
  // https://hexo.io/docs/variables.html
  CONFIG.page = {
    sidebar: "",
    isHome : false,
    isPost : true,
    lang   : 'zh-CN'
  };
</script>

  <title>【Part.1】IntelliJ IDEA小教程：代码定位篇 | Tim's Blog</title>
  


  <script>
    var _hmt = _hmt || [];
    (function() {
      var hm = document.createElement("script");
      hm.src = "https://hm.baidu.com/hm.js?64126ab668fa908027cba9464a0afec7";
      var s = document.getElementsByTagName("script")[0];
      s.parentNode.insertBefore(hm, s);
    })();
  </script>




  <noscript>
  <style>
  .use-motion .brand,
  .use-motion .menu-item,
  .sidebar-inner,
  .use-motion .post-block,
  .use-motion .pagination,
  .use-motion .comments,
  .use-motion .post-header,
  .use-motion .post-body,
  .use-motion .collection-header { opacity: initial; }

  .use-motion .site-title,
  .use-motion .site-subtitle {
    opacity: initial;
    top: initial;
  }

  .use-motion .logo-line-before i { left: initial; }
  .use-motion .logo-line-after i { right: initial; }
  </style>
</noscript>

<!-- hexo injector head_end start -->
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/katex@0.12.0/dist/katex.min.css">

<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/hexo-math@4.0.0/dist/style.css">
<!-- hexo injector head_end end --></head>

<body itemscope itemtype="http://schema.org/WebPage">
  <div class="container use-motion">
    <div class="headband"></div>

    <header class="header" itemscope itemtype="http://schema.org/WPHeader">
      <div class="header-inner"><div class="site-brand-container">
  <div class="site-nav-toggle">
    <div class="toggle" aria-label="切换导航栏">
      <span class="toggle-line toggle-line-first"></span>
      <span class="toggle-line toggle-line-middle"></span>
      <span class="toggle-line toggle-line-last"></span>
    </div>
  </div>

  <div class="site-meta">

    <a href="/" class="brand" rel="start">
      <span class="logo-line-before"><i></i></span>
      <h1 class="site-title">Tim's Blog</h1>
      <span class="logo-line-after"><i></i></span>
    </a>
      <p class="site-subtitle" itemprop="description">Learn Everything!</p>
  </div>

  <div class="site-nav-right">
    <div class="toggle popup-trigger">
        <i class="fa fa-search fa-fw fa-lg"></i>
    </div>
  </div>
</div>




<nav class="site-nav">
  <ul id="menu" class="menu">
        <li class="menu-item menu-item-home">

    <a href="/" rel="section"><i class="fa fa-fw fa-home"></i>首页</a>

  </li>
        <li class="menu-item menu-item-about">

    <a href="/about/" rel="section"><i class="fa fa-fw fa-user"></i>关于</a>

  </li>
        <li class="menu-item menu-item-tags">

    <a href="/tags/" rel="section"><i class="fa fa-fw fa-tags"></i>标签</a>

  </li>
        <li class="menu-item menu-item-categories">

    <a href="/categories/" rel="section"><i class="fa fa-fw fa-th"></i>分类</a>

  </li>
        <li class="menu-item menu-item-archives">

    <a href="/archives/" rel="section"><i class="fa fa-fw fa-archive"></i>归档</a>

  </li>
        <li class="menu-item menu-item-schedule">

    <a href="/schedule/" rel="section"><i class="fa fa-fw fa-calendar"></i>日程表</a>

  </li>
      <li class="menu-item menu-item-search">
        <a role="button" class="popup-trigger"><i class="fa fa-search fa-fw"></i>搜索
        </a>
      </li>
  </ul>
</nav>



  <div class="search-pop-overlay">
    <div class="popup search-popup">
        <div class="search-header">
  <span class="search-icon">
    <i class="fa fa-search"></i>
  </span>
  <div class="search-input-container">
    <input autocomplete="off" autocapitalize="off"
           placeholder="搜索..." spellcheck="false"
           type="search" class="search-input">
  </div>
  <span class="popup-btn-close">
    <i class="fa fa-times-circle"></i>
  </span>
</div>
<div id="search-result">
  <div id="no-result">
    <i class="fa fa-spinner fa-pulse fa-5x fa-fw"></i>
  </div>
</div>

    </div>
  </div>

</div>
    </header>

    
  <div class="back-to-top">
    <i class="fa fa-arrow-up"></i>
    <span>0%</span>
  </div>

  <a href="https://github.com/yimig" class="github-corner" title="Follow me on GitHub" aria-label="Follow me on GitHub" rel="noopener" target="_blank"><svg width="80" height="80" viewBox="0 0 250 250" aria-hidden="true"><path d="M0,0 L115,115 L130,115 L142,142 L250,250 L250,0 Z"></path><path d="M128.3,109.0 C113.8,99.7 119.0,89.6 119.0,89.6 C122.0,82.7 120.5,78.6 120.5,78.6 C119.2,72.0 123.4,76.3 123.4,76.3 C127.3,80.9 125.5,87.3 125.5,87.3 C122.9,97.6 130.6,101.9 134.4,103.2" fill="currentColor" style="transform-origin: 130px 106px;" class="octo-arm"></path><path d="M115.0,115.0 C114.9,115.1 118.7,116.5 119.8,115.4 L133.7,101.6 C136.9,99.2 139.9,98.4 142.2,98.6 C133.8,88.0 127.5,74.4 143.8,58.0 C148.5,53.4 154.0,51.2 159.7,51.0 C160.3,49.4 163.2,43.6 171.4,40.1 C171.4,40.1 176.1,42.5 178.8,56.2 C183.1,58.6 187.2,61.8 190.9,65.4 C194.5,69.0 197.7,73.2 200.1,77.6 C213.8,80.2 216.3,84.9 216.3,84.9 C212.7,93.1 206.9,96.0 205.4,96.6 C205.1,102.4 203.0,107.8 198.3,112.5 C181.9,128.9 168.3,122.5 157.7,114.1 C157.9,116.9 156.7,120.9 152.7,124.9 L141.0,136.5 C139.8,137.7 141.6,141.9 141.8,141.8 Z" fill="currentColor" class="octo-body"></path></svg></a>


    <main class="main">
      <div class="main-inner">
        <div class="content-wrap">
          

          <div class="content post posts-expand">
            

    
  
  
  <article itemscope itemtype="http://schema.org/Article" class="post-block" lang="zh-CN">
    <link itemprop="mainEntityOfPage" href="http://yimig.github.io/2018/09/28/tutorial_idea1/">

    <span hidden itemprop="author" itemscope itemtype="http://schema.org/Person">
      <meta itemprop="image" content="/uploads/avatar.png">
      <meta itemprop="name" content="Tim">
      <meta itemprop="description" content="">
    </span>

    <span hidden itemprop="publisher" itemscope itemtype="http://schema.org/Organization">
      <meta itemprop="name" content="Tim's Blog">
    </span>
      <header class="post-header">
        <h1 class="post-title" itemprop="name headline">
          【Part.1】IntelliJ IDEA小教程：代码定位篇
        </h1>

        <div class="post-meta">
            <span class="post-meta-item">
              <span class="post-meta-item-icon">
                <i class="fa fa-calendar-o"></i>
              </span>
              <span class="post-meta-item-text">发表于</span>

              <time title="创建时间：2018-09-28 22:49:30" itemprop="dateCreated datePublished" datetime="2018-09-28T22:49:30+08:00">2018-09-28</time>
            </span>
              <span class="post-meta-item">
                <span class="post-meta-item-icon">
                  <i class="fa fa-calendar-check-o"></i>
                </span>
                <span class="post-meta-item-text">更新于</span>
                <time title="修改时间：2020-10-28 22:56:53" itemprop="dateModified" datetime="2020-10-28T22:56:53+08:00">2020-10-28</time>
              </span>
            <span class="post-meta-item">
              <span class="post-meta-item-icon">
                <i class="fa fa-folder-o"></i>
              </span>
              <span class="post-meta-item-text">分类于</span>
                <span itemprop="about" itemscope itemtype="http://schema.org/Thing">
                  <a href="/categories/Tutorial/" itemprop="url" rel="index"><span itemprop="name">Tutorial</span></a>
                </span>
            </span>

          
            <span class="post-meta-item" title="本文字数">
              <span class="post-meta-item-icon">
                <i class="fa fa-file-word-o"></i>
              </span>
              <span>1.9k</span>
            </span>
            <span class="post-meta-item" title="阅读时长">
              <span class="post-meta-item-icon">
                <i class="fa fa-clock-o"></i>
              </span>
              <span>2 分钟</span>
            </span>

        </div>
      </header>

    
    
    
    <div class="post-body" itemprop="articleBody">

      
        <p>IntelliJ IDEA是JetBrains公司出品的Java IDE，其优秀的扩展性和联想功能可以大幅度提升开发者的效率，是开发JAVA应用的理想选择。下面将会介绍IntelliJ IDEA的常用功能，希望能与大家共同分享。 Form&gt;<a target="_blank" rel="noopener" href="https://www.imooc.com/learn/924">慕课网笔记</a><br><a id="more"></a></p>
<h1 id="首先贴出下载地址：https-www-jetbrains-com-idea"><a href="#首先贴出下载地址：https-www-jetbrains-com-idea" class="headerlink" title="首先贴出下载地址：https://www.jetbrains.com/idea/"></a>首先贴出下载地址：<a target="_blank" rel="noopener" href="https://www.jetbrains.com/idea/">https://www.jetbrains.com/idea/</a></h1><p>推荐下载Ultimate版本，教程就是依据其写成的，如果下载Community版可能会缺失很多功能。虽然每年500刀的售价令人望而却步。但是也有以下妥协版本： ①<strong>使用学生账户</strong>，学生期间免费使用。推荐先申请GitHub的学生开发者工具包，学信网截个图往上一po就搞定，这样不仅可以白嫖JetBrains全家桶，还能嫖到免费的GitHub空间和其众多盟友的产品，为学习提供巨大的方便。<img src="http://47.94.231.166/wp-content/uploads/2018/04/34.png" alt="">地址：<a target="_blank" rel="noopener" href="https://www.jetbrains.com/student/">https://www.jetbrains.com/student/</a> ②<strong>淘宝</strong>一个，五毛一年，26块终身，但是JetBrains全家桶都是按年卖的，终身应该指的是淘宝商家的存活时间，还是推荐按年买，毕竟存活52年的淘宝商家不多见，能干52年的程序员更不多见<img src="http://47.94.231.166/wp-content/uploads/2018/04/36.png" alt="">   安装完成后，IntelliJ的项目界面如下： <a target="_blank" rel="noopener" href="http://upane.cn/?attachment_id=680"><img src="http://47.94.231.166/wp-content/uploads/2018/09/idea64_2018-09-28_20-07-06-300x159.png" alt=""></a> 一般情况下，如果我们想查找某个功能，或者得到某个功能的快捷键，可以键入<strong>Ctrl+Shift+A</strong>打开功能查找窗口。界面如下 <a target="_blank" rel="noopener" href="http://upane.cn/?attachment_id=683"><img src="http://47.94.231.166/wp-content/uploads/2018/09/2018-09-28_20-53-38-300x44.png" alt=""></a></p>
<h1 id="①标签页快捷操作"><a href="#①标签页快捷操作" class="headerlink" title="①标签页快捷操作"></a>①标签页快捷操作</h1><p>可以看出窗口左侧和下方的标签页都带有数字： <a target="_blank" rel="noopener" href="http://upane.cn/?attachment_id=681"><img src="http://47.94.231.166/wp-content/uploads/2018/09/idea64_2018-09-28_20-36-35-77x150.png" alt=""></a> 这代表按下<strong>Alt+数字</strong>即可打开相应的标签页 当焦点在标签页上时，按下<strong>Esc</strong>键即可退回编程窗口。</p>
<h1 id="②跳转"><a href="#②跳转" class="headerlink" title="②跳转"></a>②跳转</h1><h2 id="1-项目之间的跳转"><a href="#1-项目之间的跳转" class="headerlink" title="1.项目之间的跳转"></a>1.项目之间的跳转</h2><p>在打开多个项目后，我们可以使用快捷键<strong>Ctrl+Shift+]</strong>切换到下一个窗口，使用<strong>Ctrl+Shift+[</strong>切换到上一个窗口，对应功能在window选项卡下：可以查找到相对应的功能。 <a target="_blank" rel="noopener" href="http://upane.cn/?attachment_id=682"><img src="http://47.94.231.166/wp-content/uploads/2018/09/2018-09-28_20-48-57.png" alt=""></a></p>
<h2 id="2-文件之间的跳转"><a href="#2-文件之间的跳转" class="headerlink" title="2.文件之间的跳转"></a>2.文件之间的跳转</h2><p>按下<strong>Alt+E</strong>即可弹出最近<strong>打开</strong>的文件窗口，在此窗口下可以<strong>直接输入键入文件名以搜索</strong>，以再次按下组合键即可切换选项，按下<strong>Enter</strong>进入文件，按下<strong>Esc</strong>退出窗口。 <a target="_blank" rel="noopener" href="http://upane.cn/?attachment_id=684"><img src="http://47.94.231.166/wp-content/uploads/2018/09/idea64_2018-09-28_20-46-29-300x159.png" alt=""></a> 按下<strong>Alt+Shift+E</strong>可以弹出最近<strong>修改</strong>的文件窗口，使用方法同最近打开的文件窗口。</p>
<h2 id="3-代码之间的跳转"><a href="#3-代码之间的跳转" class="headerlink" title="3.代码之间的跳转"></a>3.代码之间的跳转</h2><p>按下<strong>Ctrl+Shift+Backspace</strong>即可快速返回上一次<strong>修改</strong>的代码位置 按下<strong>Ctrl+Alt+←</strong>即可快速返回上一次<strong>光标停留</strong>（浏览）的位置，按下<strong>Ctrl+Alt+→</strong>即可进入下一次<strong>光标停留</strong>（浏览）的位置 其功能位于Navigate选项卡下： <a target="_blank" rel="noopener" href="http://upane.cn/?attachment_id=685"><img src="http://47.94.231.166/wp-content/uploads/2018/09/idea64_2018-09-28_21-03-50-300x111.png" alt=""></a></p>
<h2 id="4-代码标记"><a href="#4-代码标记" class="headerlink" title="4.代码标记"></a>4.代码标记</h2><h3 id="书签"><a href="#书签" class="headerlink" title="书签"></a>书签</h3><p>按下<strong>F11</strong>即可在当前光标所在代码处插入书签，插入书签后，可在Favorites标签页（Alt+4）中的Bookmark中找到： <a target="_blank" rel="noopener" href="http://upane.cn/?attachment_id=687"><img src="http://47.94.231.166/wp-content/uploads/2018/09/idea64_2018-09-28_21-31-05-300x234.png" alt=""></a> 如果想快速定位，可以选择使用<strong>Ctrl+F11</strong>代替之前的F11，这样在标记书签的同时还可以<strong>自定义快捷键</strong>： <a target="_blank" rel="noopener" href="http://upane.cn/?attachment_id=686"><img src="http://47.94.231.166/wp-content/uploads/2018/09/idea64_2018-09-28_21-30-07-300x287.png" alt=""></a> 选定按键后，按下<strong>Ctrl+选定按键</strong>即可跳转到书签位置。</p>
<h3 id="偏好列表"><a href="#偏好列表" class="headerlink" title="偏好列表"></a>偏好列表</h3><p>按下<strong>Alt+Shift+F</strong>即可将当前行、函数（光标在函数名）、类（光标在类名）等等保存到偏好列表。 可以建立多个偏好列表，以此对标记代码进行分类。 <a target="_blank" rel="noopener" href="http://upane.cn/?attachment_id=688"><img src="http://47.94.231.166/wp-content/uploads/2018/09/2018-09-28_21-40-49.png" alt=""></a></p>
<h3 id="插件：emacsIDEAs"><a href="#插件：emacsIDEAs" class="headerlink" title="插件：emacsIDEAs"></a>插件：emacsIDEAs</h3><p>安装教程见→<a target="_blank" rel="noopener" href="http://upane.cn/archives/723">emacsIDEAs安装教程</a> 安装该插件后，对于该代码： <a target="_blank" rel="noopener" href="http://upane.cn/?attachment_id=689"><img src="http://47.94.231.166/wp-content/uploads/2018/09/idea64_2018-09-28_22-06-40-300x116.png" alt=""></a> 如果想要将光标跳转到Main类修饰符public的位置，按下定义好的快捷键，再按下p（因为public以p开头，其余同理Main类修饰符public的位置），即可出现以下界面·： <a target="_blank" rel="noopener" href="http://upane.cn/?attachment_id=690"><img src="http://47.94.231.166/wp-content/uploads/2018/09/idea64_2018-09-28_22-07-12-300x108.png" alt=""></a> 然后按下d，即可跳转到Main类修饰符public的位置。 <a target="_blank" rel="noopener" href="http://upane.cn/?attachment_id=691"><img src="http://47.94.231.166/wp-content/uploads/2018/09/idea64_2018-09-28_22-07-29-300x114.png" alt=""></a>  </p>
<h1 id="③精准搜索"><a href="#③精准搜索" class="headerlink" title="③精准搜索"></a>③精准搜索</h1><p>在Navigate选项卡下有很多我们常用的搜索工具，下面将逐一介绍： <a target="_blank" rel="noopener" href="http://upane.cn/archives/679/2018-09-28_22-42-07"><img src="http://47.94.231.166/wp-content/uploads/2018/09/2018-09-28_22-42-07.png" alt=""></a></p>
<h2 id="搜索类"><a href="#搜索类" class="headerlink" title="搜索类"></a>搜索类</h2><p>按下<strong>Ctrl+N</strong>即可对项目内的类进行搜索，再次按下即可搜索包括jar包的所有类。</p>
<h2 id="搜索文件"><a href="#搜索文件" class="headerlink" title="搜索文件"></a>搜索文件</h2><p>按下<strong>Ctrl+Shift+N</strong>即可对项目内的文件进行搜索，再次按下即可搜索包括jar包的所有文件。</p>
<h2 id="搜索方法和属性（符号Symbol）"><a href="#搜索方法和属性（符号Symbol）" class="headerlink" title="搜索方法和属性（符号Symbol）"></a>搜索方法和属性（符号Symbol）</h2><p>按下<strong>Ctrl+Alt+Shift+N</strong>即可对项目内的方法和属性进行搜索，再次按下即可搜索包括jar包的所有方法和属性。</p>
<h2 id="搜索字符-字符串"><a href="#搜索字符-字符串" class="headerlink" title="搜索字符/字符串"></a>搜索字符/字符串</h2><p>这个很特殊，不再Navigate选项卡中，在Edit&gt;Find选项卡中，对应快捷键为<strong>Ctrl+F</strong>。 <a target="_blank" rel="noopener" href="http://upane.cn/archives/679/idea64_2018-09-28_22-58-25"><img src="http://47.94.231.166/wp-content/uploads/2018/09/idea64_2018-09-28_22-58-25-300x129.png" alt=""></a> 按下快捷键后，将弹出搜索框，如下图 <a target="_blank" rel="noopener" href="http://upane.cn/archives/679/idea64_2018-09-28_23-05-39"><img src="http://47.94.231.166/wp-content/uploads/2018/09/idea64_2018-09-28_23-05-39-300x54.png" alt=""></a> 需要注意的是，<strong>搜索框只能搜索当前文档内的字符串</strong>。</p>
<blockquote>
<p>对应的三个可选框分别为： 完全匹配/匹配大小写（Match Case） 匹配单词（Words） 使用正则表达式进行搜索（Regex）</p>
</blockquote>
<p>若要在全局搜索字符串，可以键入<strong>Ctrl+Shift+F</strong>打开搜索窗口，如下图 <a target="_blank" rel="noopener" href="http://upane.cn/archives/679/2018-09-28_23-11-10"><img src="http://47.94.231.166/wp-content/uploads/2018/09/2018-09-28_23-11-10-267x300.png" alt=""></a> 搜索窗口新增的可选框“File mask”可以对搜索的文件类型进行筛选。 搜索栏下方的四个按钮分别为在当前项目中搜索、在当前模块中搜索、在当前目录中搜索、在下拉框给出的自定范围中搜索。</p>

    </div>

    
    
    

      <footer class="post-footer">
          <div class="post-tags">
              <a href="/tags/IntelliJ-IDEA/" rel="tag"># IntelliJ IDEA</a>
              <a href="/tags/%E6%95%99%E7%A8%8B/" rel="tag"># 教程</a>
          </div>

        


        
    <div class="post-nav">
      <div class="post-nav-item">
    <a href="/2018/09/28/csharp_generic/" rel="prev" title="【C#】泛型">
      <i class="fa fa-chevron-left"></i> 【C#】泛型
    </a></div>
      <div class="post-nav-item">
    <a href="/2018/09/29/csharp_sets/" rel="next" title="【C#】集合">
      【C#】集合 <i class="fa fa-chevron-right"></i>
    </a></div>
    </div>
      </footer>
    
  </article>
  
  
  



          </div>
          
    <div class="comments" id="gitalk-container"></div>

<script>
  window.addEventListener('tabs:register', () => {
    let { activeClass } = CONFIG.comments;
    if (CONFIG.comments.storage) {
      activeClass = localStorage.getItem('comments_active') || activeClass;
    }
    if (activeClass) {
      let activeTab = document.querySelector(`a[href="#comment-${activeClass}"]`);
      if (activeTab) {
        activeTab.click();
      }
    }
  });
  if (CONFIG.comments.storage) {
    window.addEventListener('tabs:click', event => {
      if (!event.target.matches('.tabs-comment .tab-content .tab-pane')) return;
      let commentClass = event.target.classList[1];
      localStorage.setItem('comments_active', commentClass);
    });
  }
</script>

        </div>
          
  
  <div class="toggle sidebar-toggle">
    <span class="toggle-line toggle-line-first"></span>
    <span class="toggle-line toggle-line-middle"></span>
    <span class="toggle-line toggle-line-last"></span>
  </div>

  <aside class="sidebar">
    <div class="sidebar-inner">

      <ul class="sidebar-nav motion-element">
        <li class="sidebar-nav-toc">
          文章目录
        </li>
        <li class="sidebar-nav-overview">
          站点概览
        </li>
      </ul>

      <!--noindex-->
      <div class="post-toc-wrap sidebar-panel">
          <div class="post-toc motion-element"><ol class="nav"><li class="nav-item nav-level-1"><a class="nav-link" href="#%E9%A6%96%E5%85%88%E8%B4%B4%E5%87%BA%E4%B8%8B%E8%BD%BD%E5%9C%B0%E5%9D%80%EF%BC%9Ahttps-www-jetbrains-com-idea"><span class="nav-number">1.</span> <span class="nav-text">首先贴出下载地址：https:&#x2F;&#x2F;www.jetbrains.com&#x2F;idea&#x2F;</span></a></li><li class="nav-item nav-level-1"><a class="nav-link" href="#%E2%91%A0%E6%A0%87%E7%AD%BE%E9%A1%B5%E5%BF%AB%E6%8D%B7%E6%93%8D%E4%BD%9C"><span class="nav-number">2.</span> <span class="nav-text">①标签页快捷操作</span></a></li><li class="nav-item nav-level-1"><a class="nav-link" href="#%E2%91%A1%E8%B7%B3%E8%BD%AC"><span class="nav-number">3.</span> <span class="nav-text">②跳转</span></a><ol class="nav-child"><li class="nav-item nav-level-2"><a class="nav-link" href="#1-%E9%A1%B9%E7%9B%AE%E4%B9%8B%E9%97%B4%E7%9A%84%E8%B7%B3%E8%BD%AC"><span class="nav-number">3.1.</span> <span class="nav-text">1.项目之间的跳转</span></a></li><li class="nav-item nav-level-2"><a class="nav-link" href="#2-%E6%96%87%E4%BB%B6%E4%B9%8B%E9%97%B4%E7%9A%84%E8%B7%B3%E8%BD%AC"><span class="nav-number">3.2.</span> <span class="nav-text">2.文件之间的跳转</span></a></li><li class="nav-item nav-level-2"><a class="nav-link" href="#3-%E4%BB%A3%E7%A0%81%E4%B9%8B%E9%97%B4%E7%9A%84%E8%B7%B3%E8%BD%AC"><span class="nav-number">3.3.</span> <span class="nav-text">3.代码之间的跳转</span></a></li><li class="nav-item nav-level-2"><a class="nav-link" href="#4-%E4%BB%A3%E7%A0%81%E6%A0%87%E8%AE%B0"><span class="nav-number">3.4.</span> <span class="nav-text">4.代码标记</span></a><ol class="nav-child"><li class="nav-item nav-level-3"><a class="nav-link" href="#%E4%B9%A6%E7%AD%BE"><span class="nav-number">3.4.1.</span> <span class="nav-text">书签</span></a></li><li class="nav-item nav-level-3"><a class="nav-link" href="#%E5%81%8F%E5%A5%BD%E5%88%97%E8%A1%A8"><span class="nav-number">3.4.2.</span> <span class="nav-text">偏好列表</span></a></li><li class="nav-item nav-level-3"><a class="nav-link" href="#%E6%8F%92%E4%BB%B6%EF%BC%9AemacsIDEAs"><span class="nav-number">3.4.3.</span> <span class="nav-text">插件：emacsIDEAs</span></a></li></ol></li></ol></li><li class="nav-item nav-level-1"><a class="nav-link" href="#%E2%91%A2%E7%B2%BE%E5%87%86%E6%90%9C%E7%B4%A2"><span class="nav-number">4.</span> <span class="nav-text">③精准搜索</span></a><ol class="nav-child"><li class="nav-item nav-level-2"><a class="nav-link" href="#%E6%90%9C%E7%B4%A2%E7%B1%BB"><span class="nav-number">4.1.</span> <span class="nav-text">搜索类</span></a></li><li class="nav-item nav-level-2"><a class="nav-link" href="#%E6%90%9C%E7%B4%A2%E6%96%87%E4%BB%B6"><span class="nav-number">4.2.</span> <span class="nav-text">搜索文件</span></a></li><li class="nav-item nav-level-2"><a class="nav-link" href="#%E6%90%9C%E7%B4%A2%E6%96%B9%E6%B3%95%E5%92%8C%E5%B1%9E%E6%80%A7%EF%BC%88%E7%AC%A6%E5%8F%B7Symbol%EF%BC%89"><span class="nav-number">4.3.</span> <span class="nav-text">搜索方法和属性（符号Symbol）</span></a></li><li class="nav-item nav-level-2"><a class="nav-link" href="#%E6%90%9C%E7%B4%A2%E5%AD%97%E7%AC%A6-%E5%AD%97%E7%AC%A6%E4%B8%B2"><span class="nav-number">4.4.</span> <span class="nav-text">搜索字符&#x2F;字符串</span></a></li></ol></li></ol></div>
      </div>
      <!--/noindex-->

      <div class="site-overview-wrap sidebar-panel">
        <div class="site-author motion-element" itemprop="author" itemscope itemtype="http://schema.org/Person">
    <img class="site-author-image" itemprop="image" alt="Tim"
      src="/uploads/avatar.png">
  <p class="site-author-name" itemprop="name">Tim</p>
  <div class="site-description" itemprop="description"></div>
</div>
<div class="site-state-wrap motion-element">
  <nav class="site-state">
      <div class="site-state-item site-state-posts">
          <a href="/archives/">
        
          <span class="site-state-item-count">90</span>
          <span class="site-state-item-name">日志</span>
        </a>
      </div>
      <div class="site-state-item site-state-categories">
            <a href="/categories/">
          
        <span class="site-state-item-count">24</span>
        <span class="site-state-item-name">分类</span></a>
      </div>
      <div class="site-state-item site-state-tags">
            <a href="/tags/">
          
        <span class="site-state-item-count">40</span>
        <span class="site-state-item-name">标签</span></a>
      </div>
  </nav>
</div>
  <div class="links-of-author motion-element">
      <span class="links-of-author-item">
        <a href="https://github.com/yimig" title="GitHub → https:&#x2F;&#x2F;github.com&#x2F;yimig" rel="noopener" target="_blank"><i class="fa fa-fw fa-github"></i>GitHub</a>
      </span>
      <span class="links-of-author-item">
        <a href="mailto:zhangyiming@programmer.net" title="E-Mail → mailto:zhangyiming@programmer.net" rel="noopener" target="_blank"><i class="fa fa-fw fa-envelope"></i>E-Mail</a>
      </span>
      <span class="links-of-author-item">
        <a href="https://leetcode.com/yimig/" title="LeeCode → https:&#x2F;&#x2F;leetcode.com&#x2F;yimig&#x2F;" rel="noopener" target="_blank"><i class="fa fa-fw fa-code"></i>LeeCode</a>
      </span>
      <span class="links-of-author-item">
        <a href="https://www.zhihu.com/people/tim-2-96" title="zhihu → https:&#x2F;&#x2F;www.zhihu.com&#x2F;people&#x2F;tim-2-96" rel="noopener" target="_blank"><i class="fa fa-fw fa-question-circle"></i>zhihu</a>
      </span>
  </div>


  <div class="links-of-blogroll motion-element">
    <div class="links-of-blogroll-title">
      <i class="fa fa-fw fa-link"></i>
      Links
    </div>
    <ul class="links-of-blogroll-list">
        <li class="links-of-blogroll-item">
          <a href="https://upane.cn/" title="https:&#x2F;&#x2F;upane.cn" rel="noopener" target="_blank">博客旧址</a>
        </li>
    </ul>
  </div>

      </div>

    </div>
  </aside>
  <div id="sidebar-dimmer"></div>


      </div>
    </main>

    <footer class="footer">
      <div class="footer-inner">
        

        

<div class="copyright">
  
  &copy; 
  <span itemprop="copyrightYear">2021</span>
  <span class="with-love">
    <i class="fa fa-user"></i>
  </span>
  <span class="author" itemprop="copyrightHolder">Tim</span>
    <span class="post-meta-divider">|</span>
    <span class="post-meta-item-icon">
      <i class="fa fa-area-chart"></i>
    </span>
    <span title="站点总字数">183k</span>
    <span class="post-meta-divider">|</span>
    <span class="post-meta-item-icon">
      <i class="fa fa-coffee"></i>
    </span>
    <span title="站点阅读时长">2:46</span>
</div>
  <div class="powered-by">由 <a href="https://hexo.io/" class="theme-link" rel="noopener" target="_blank">Hexo</a> & <a href="https://muse.theme-next.org/" class="theme-link" rel="noopener" target="_blank">NexT.Muse</a> 强力驱动
  </div>

        








      </div>
    </footer>
  </div>

  
  <script src="/lib/anime.min.js"></script>
  <script src="/lib/velocity/velocity.min.js"></script>
  <script src="/lib/velocity/velocity.ui.min.js"></script>

<script src="/js/utils.js"></script>

<script src="/js/motion.js"></script>


<script src="/js/schemes/muse.js"></script>


<script src="/js/next-boot.js"></script>


  <script defer src="//cdn.jsdelivr.net/gh/theme-next/theme-next-three@1/three.min.js"></script>
    <script defer src="//cdn.jsdelivr.net/gh/theme-next/theme-next-three@1/canvas_sphere.min.js"></script>


  
  <script>
    (function(){
      var bp = document.createElement('script');
      var curProtocol = window.location.protocol.split(':')[0];
      bp.src = (curProtocol === 'https') ? 'https://zz.bdstatic.com/linksubmit/push.js' : 'http://push.zhanzhang.baidu.com/push.js';
      var s = document.getElementsByTagName("script")[0];
      s.parentNode.insertBefore(bp, s);
    })();
  </script>




  
<script src="/js/local-search.js"></script>













  

  

  

<link rel="stylesheet" href="//cdn.jsdelivr.net/npm/gitalk@1/dist/gitalk.min.css">

<script>
NexT.utils.loadComments(document.querySelector('#gitalk-container'), () => {
  NexT.utils.getScript('//cdn.jsdelivr.net/npm/gitalk@1/dist/gitalk.min.js', () => {
    var gitalk = new Gitalk({
      clientID    : 'a876807f33858291f9d9',
      clientSecret: '7a5c6a83611c309965d7339d7ca5f16e34a21e9f',
      repo        : 'yimig.github.io',
      owner       : 'yimig',
      admin       : ['yimig'],
      id          : 'b5f434c9c13af1384829bce16c2ad7fb',
        language: '',
      distractionFreeMode: true
    });
    gitalk.render('gitalk-container');
  }, window.Gitalk);
});
</script>

</body>
</html>
